import request from '@/utils/request'

// 查询会员排期列表
export function listSchedules(query) {
  return request({
    url: '/projects/schedules/list',
    method: 'get',
    params: query
  })
}

// 查询会员排期详细
export function getSchedules(sId) {
  return request({
    url: '/projects/schedules/' + sId,
    method: 'get'
  })
}

// 新增会员排期
export function addSchedules(data) {
  return request({
    url: '/projects/schedules',
    method: 'post',
    data: data
  })
}
// 新增所有会员排期
export function addAllSchedules(data) {
  return request({
    url: '/projects/schedules/all',
    method: 'post',
    data: data
  })
}
// 修改会员排期
export function updateSchedules(data) {
  return request({
    url: '/projects/schedules',
    method: 'put',
    data: data
  })
}

// 删除会员排期
export function delSchedules(sId) {
  return request({
    url: '/projects/schedules/' + sId,
    method: 'delete'
  })
}
